﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CRC.GestionSalones.Controladores;

namespace CRC.GestionSalones.Presentacion
{
    public partial class ExaminarSecretarios : ExaminarPersonas
    {
        ControladorListarSecretarios cLS = new ControladorListarSecretarios();
        
        public ExaminarSecretarios() : base()
        {
            InitializeComponent();
            try
            {
                base.cmbPersonas.SetData(cLS.todosSecretarios());
            }
            catch (Exception ex)
            {
                MessageBox.Show(
                    ex.Message,
                    "Error",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error,
                    MessageBoxDefaultButton.Button1
                );
            }
        }
    }
}
